<?php
$idUser = elgg_get_logged_in_user_guid();
                    $idLesson = $_SESSION["idLesson"];
?>


<div class="lesson_menu">
    <ul>
        <li><a href="#"> Beginner A1 </a></li>
        <li><a href="#"> Beginner A2 </a></li>
        <li><a href="LuyenNghe.php"> Imtermediate B1 </a></li>
        <li><a href="VietBai.php"> Imtermeditate B2 </a></li>
    </ul>
</div> <!-- End lesson_menu -->

<div class = "main_content">
    <!-- InstanceBeginEditable name="Content" -->

    <div id="NameLesson">
        <h2>Lesson 1</h2>
    </div><!-- end namelesson -->
    <div id="ListDanhMuc">

        <a href="  <?php echo elgg_add_action_tokens_to_url($vars['url'] . 'action/MyCourse/vocabulary'); ?>">
            <div class ="box_menu">
                <img src="<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/vocabulary.jpg" style="width:70px;height:70px;" alt="Vocabulary"/>
                Vocabulary
            </div> </a>

        <a href="NguPhap.php">
            <div class ="box_menu">
                <img src="<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/grammar.jpg" style="width:70px;height:70px;" alt="Grammar"/>
                Grammar
            </div>
        </a>


        <a href="<?php echo elgg_add_action_tokens_to_url($vars['url'] . 'action/MyCourse/loadlisten'); ?>">
            <div class ="box_menu">
                <?php 
                    $status = new Status();
                    $isLearn = $status->GetStatusListen($idUser, $idLesson);
                    if($isLearn==1)
                    {
                ?>
                    <img src="<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/listened.png" style="width:70px;height:70px;"alt="Listen"/>
                <?php
                    }
                    else
                    {?>
                <img src="<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/listen.jpg" style="width:70px;height:70px;"alt="Listen"/>
                <?php }?>
                Listen
            </div>
        </a>

        <a href="<?php echo elgg_add_action_tokens_to_url($vars['url'] . 'action/MyCourse/loadWrite'); ?>">
            <div class ="box_menu">
                <?php 
                    //$status = new Status();
                   // $isWrite = $status->GetStatusWrite($idUser, $idLesson);
                    if(0)
                    {
                ?>
                  <img src="<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/writed.jpg" style="width:70px;height:70px;"alt="Write"/>
                <?php
                    }
                    else
                    {?>
                <img src="<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/write.jpg" style="width:70px;height:70px;"alt="Write"/>
                <?php }?>
           
                Writing
            </div>
        </a>

        <a href="<?php echo elgg_add_action_tokens_to_url($vars['url'] . 'action/MyCourse/loadTest'); ?>">
            <div class ="box_menu">
                <img src='<?php echo elgg_get_site_url(); ?>mod/MyCourse/Resources/Tool/LessonMenu/test.jpg' style="width:70px;height:70px;" alt="Test"/>
                Test
            </div>
        </a>

    </div> <!-- end ListDanhMuc -->

    <div id="process">
    </div><!-- end process -->

    <!-- InstanceEndEditable -->
</div> <!-- End main_content -->
